package com.iweb.day07;

/**
 * @author WuYongheng
 * @date 2021/11/8
 * @description
 */
    public class TestFullSum {
        public static void main(String[] args) {
            System.out.println(fullSum(6));
        }
        public static int fullSum(int n) {
            if (n == 0) {
                return 0;
            }
            return n+fullSum(n-1);
        }
    }

